import http from "@/api/http";

const baseURL = "/userMgmt";

export default {
  getAllUsers() {
    return http.get(baseURL+'/list');
  },
  getUserById(id) {
    return http.get(`${baseURL}/${id}`);
  },
  createUser(user) {
    return http.post(baseURL, user);
  },
  updateUser(user) {
    return http.put(baseURL, user);
  },
  deleteUser(id) {
    return http.delete(`${baseURL}/${id}`);
  },
};
